package support_device

import (
	"errors"
	"fsdvgw/repo"
	"fsdvgw/support_device/dumu"
)

func ExecuteCommand(dev *repo.Dev, command string, commandInfo map[string]any) (any, error) {
	switch dev.Model {
	case dumu.ModelName:
		return dumu.Execute(dev, command, commandInfo)
	default:
		return nil, errors.New("没有设备型号" + dev.Model + "的处理方法")
	}
}
